package samples.chapter10;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("chapter10/method")
@RestController
public class Chapter10MethodController {
    @Autowired
    private Chapter10MethodService methodService;

    @GetMapping("/admin")
    public String admin(){
        return methodService.admin();
    }
}
